package com.kehutong.payment.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.time.LocalDateTime;

@Table(value = "t_order_refund", comment = "订单退款表")
public class OrderRefund extends Entity {

    private static final long serialVersionUID = 1L;

    protected OrderRefund(String id) {
        super(id);
    }

    @Column(comment = "订单表id", name = "third_order_id", length = 32)
    private String thirdOrderId;

    @Column(comment = "交易号", name = "trade_no", length = 32)
    private String tradeNo;

    @Column(comment = "供应商交易号", name = "vendor_trade_no", length = 64)
    private String vendorTradeNo;

    @Column(comment = "退款日期", name = "refund_date")
    private LocalDateTime refundDate;

    @Column(comment = "退款金额（精确到分）", name = "refund_money")
    private int refundMoney;

    @Column(comment = "是否退款成功，0：否，1：是", name = "is_success")
    private int isSuccess;

    @Column(comment = "退款原因", name = "refund_reason", length = 512)
    private String refundReason;

    @Column(comment = "通知日期", name = "notify_date")
    private LocalDateTime notifyDate;

    @Column(comment = "通知结果", name = "notify_result", dbType = "TEXT")
    private String notifyResult;

    @Column(comment = "创建者", name = "create_user_id", length = 32)
    private String createUserId;

    public String getThirdOrderId() {
        return thirdOrderId;
    }

    public void setThirdOrderId(String thirdOrderId) {
        this.thirdOrderId = thirdOrderId;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getVendorTradeNo() {
        return vendorTradeNo;
    }

    public void setVendorTradeNo(String vendorTradeNo) {
        this.vendorTradeNo = vendorTradeNo;
    }

    public LocalDateTime getRefundDate() {
        return refundDate;
    }

    public void setRefundDate(LocalDateTime refundDate) {
        this.refundDate = refundDate;
    }

    public int getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(int refundMoney) {
        this.refundMoney = refundMoney;
    }

    public int getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(int isSuccess) {
        this.isSuccess = isSuccess;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    public LocalDateTime getNotifyDate() {
        return notifyDate;
    }

    public void setNotifyDate(LocalDateTime notifyDate) {
        this.notifyDate = notifyDate;
    }

    public String getNotifyResult() {
        return notifyResult;
    }

    public void setNotifyResult(String notifyResult) {
        this.notifyResult = notifyResult;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }
}
